package com.zl.cms.dto;

/**
 * 用来返回ajax处理后，结果的json对象 User: zl email:c3tc3tc3t@126.com Date: 14-2-11 Time: 下午12:09
 */
public class AjaxObj {
  /**
   * 1表示成功 0表示失败
   */
  private int result;

  /**
   * 提示信息
   */
  private String msg;

  /**
   * 附加对象用来存储一些特定的返回信息
   */
  private Object obj;


  public int getResult() {
    return result;
  }


  public AjaxObj(int result) {
    this.result = result;
  }

  public AjaxObj(int result, String msg) {

    this.result = result;
    this.msg = msg;
  }

  public AjaxObj(int result, String msg, Object obj) {

    this.result = result;
    this.msg = msg;
    this.obj = obj;
  }

  public AjaxObj() {

  }

  public void setResult(int result) {
    this.result = result;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public Object getObj() {
    return obj;
  }

  public void setObj(Object obj) {
    this.obj = obj;
  }
}
